﻿using IterationLife.Domains.Sports.Models;
using Util.Datas.Ef;

namespace IterationLife.Datas.Mappings.Sports {
    /// <summary>
    /// 体育比赛映射配置
    /// </summary>
    public class SportEventMap : AggregateRootMapBase<SportEvent> {
        /// <summary>
        /// 映射表
        /// </summary>
        protected override void MapTable() {
            ToTable( "SportEvents", "Sports" );
        }
        
        /// <summary>
        /// 映射属性
        /// </summary>
        protected override void MapProperties() {
            //体育比赛编号
            Property(t => t.Id)
                .HasColumnName("SportEventId");
        }
        
        /// <summary>
        /// 映射导航属性
        /// </summary>
        protected override void MapAssociations() {
        }
    }
}
